package com.wtzz.police.base.bean.dto;

import com.wtzz.police.base.model.enums.Role;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.persistence.*;
import javax.validation.constraints.NotBlank;

/**
 * 用户请求
 */
@Data
@NoArgsConstructor
public class UserDto {

    @ApiModelProperty(value = "用户名", required = true)
    @NotBlank(message = "用户名不能为空")
    private String username;
    @ApiModelProperty("姓名")
    private String fullname;
    @ApiModelProperty("联系电话")
    private String phone;
    @ApiModelProperty("部门名称")
    private String departmentName;
    @ApiModelProperty("部门Id")
    private String departmentId;
//    @ApiModelProperty(value = "证件号码")
//    private String zjhm;

    @Transient
    @ApiModelProperty(value = "权限角色")
    private Role role;

    @ApiModelProperty(value = "用户启用状态")
    private Boolean enabled ;

}
